<!DOCTYPE validators PUBLIC 
  		"-//OpenSymphony Group//XWork Validator 1.0//EN" 
  		"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
<#list entity.properties as property><#t/>
<#if statics["com.fzy.core.codetools.PropertyWrapper"].STRING == property.propertyType><#t/>
	<#if property.notNull && !property.isKey><#t/>
	<field name="${property.nameUncapital}">
		<field-validator type="requiredstring">
			<message></message>
		</field-validator>
	</field>
	</#if><#t/>
	<field name="${property.nameUncapital}">
		<field-validator type="length">
			<param name="maxLength">${property.length}</param>
			<message></message>
		</field-validator>
	</field>
<#else><#t/>
	<#if property.notNull><#t/>
	<field name="${property.nameUncapital}">
		<field-validator type="required">
			<message></message>
		</field-validator>
	</field>
	</#if><#t/>
</#if><#t/>
</#list><#t/>
</validators>

